<template>
  <div class="labelCom">
    {{ showLabel(obj.label) }}
  </div>
</template>

<script>
import dayjs from 'dayjs'
export default {
  name: 'labelCom',
  props:["obj"],
  methods:{
    showLabel(v) {
      return dayjs(v, this.$parent.dateFormartStr).format('HH')
    },
  }
}

</script>
<style lang="scss" scoped>
.labelCom {
  margin-top : 10px;
  margin-left: -0.5em;
}
</style>
